package com.rakuten.api.mule.transformers;

import java.util.Iterator;
import java.util.Map;
import java.util.Collection;
import java.util.ArrayList;


import org.mule.api.transformer.TransformerException;
import org.mule.config.i18n.MessageFactory;
import org.mule.transformer.AbstractTransformer;
import org.mule.transformer.types.SimpleDataType;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class HttpResultToBulkApiRequestListTransformer extends AbstractTransformer {
	private final static Logger logger = LoggerFactory.getLogger(MapToQueryParametersTransformer.class);

	public HttpResultToBulkApiRequestListTransformer() {
		registerSourceType(new SimpleDataType<String>(String.class));
		//registerSourceType(new SimpleDataType<Map>(Map.class));

		setReturnDataType(new SimpleDataType<Collection>(Collection.class));
	}

	@Override
	protected Object doTransform(Object src, String enc)
			throws TransformerException {

		String params="";	
		try {
			String str = (String)src;



			logger.debug("" + src.getClass());

		} catch (Exception e) {
			e.printStackTrace();
			throw new TransformerException(MessageFactory.createStaticMessage(e.getMessage()));
		}
		ArrayList list = new ArrayList();
		list.add("aaa");
		return list;
	}
}
